$hea:#333;
$heaW:97%;
$heaH:40px;
$div:70px;
$footerheaH:25px;
$footerheaW:100%;
$divspan: inline-block;

body {
    font-family: Arial, sans-serif;
     
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: $hea;
    color: white;
    padding: 10px 0;
    width: $heaW;
    height: $heaH;
    margin: auto;
    display: flex;
    justify-content: center;
    
}
//鼠标样式
.cursor-pointer{
    cursor: pointer;
}
// span:
header span {
    display: $divspan;

    margin-left: $div;
}

header div  {
    text-align: center;
   margin: auto;
    line-height:  20px;
}

main {
    margin: 20px;
    padding: 20px;
    width: 80%;
    height: 650px;
   margin-top: 30px;
    margin-left: 10%;
  
    border: 2px solid #ccc;
}

main .sda {


    padding: 20px;

}

.match-details {
    display: none;
    /* 默认隐藏赛事详情 */
    margin-top: 10px;

}

$heaq:rgb(79, 255, 170);

a:link {
    color: $heaq;
}

table:hover{
    background-color: chartreuse;
}

footer {
    height: $footerheaH;
    width:$heaW;
    background-color: $hea;
    color: aquamarine;
    text-align: center;
    padding: 25px;
    margin-top: 70px;
}

footer div {
    text-align: center;
    line-height: 0.1px;

}

.sticky-header {
    position: sticky;
    top: 0;
    background: white; /* 确保背景是白色的，以防止滚动时背景颜色改变 */
    margin-top: 10px;
}

.scrollable-container {
    height: 600px; /* 设置容器的高度 */
    overflow-y: scroll; /* 允许垂直滚动 */
    max-width: 100%; /* 可选：限制最大宽度 */
}

#player-ranking-table {
    width: 100%; /* 表格宽度 */
    border-collapse: collapse; /* 去除边框合并 */
}

#player-ranking-table th, #player-ranking-table td {
    border: 1px solid #ddd; /* 设置边框 */
    padding: 8px; /* 设置单元格内边距 */
}

//下划线
// title {
//     color: #333;
//     line-height: 2;
// }

// .title h2 {
//     background: linear-gradient(to right, rgb(243, 76, 76), rgb(33, 227, 123)) no-repeat right bottom;
//     background-size: 0 2px;
//     transition: background-size 3s;
// }

// .title h2:hover {
//     background-position: left bottom;
//     background-size: 100% 2px;
// }

/* 基础样式 */



.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 20px;
}

.content-section {
    margin-top: 20px;
}

tbody{
    background-color: blanchedalmond;
    font-family:'楷体';
    font-size: 30px;
}

/* 表格样式 */
#player-ranking-table {
    width: 100%;
    border-collapse: collapse;
}

#player-ranking-table th,
#player-ranking-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#player-ranking-table thead {
    background-color: #f2f2f2;
}

#player-ranking-table tbody tr:hover {
    background-color: #f5f5f5;
}

 .team-info { margin-bottom: 20px; border: 1px solid #ddd; padding: 10px; }
  .team-name { font-size: 24px; font-weight: bold; }
  .players-list { list-style-type: none; padding: 0; }
  .players-list li { margin-bottom: 5px;}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header nav ul {
        display: flex;
        flex-direction: column;
    }

    .header nav ul li {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 10px;
    }
}